package com.kyd.push.model;


import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * OrderMqContext
 *
 * @author MarsBuilder on 2018/9/7 11:01
 */
@Data
public class OrderMqContext implements Serializable {
	private static final long serialVersionUID = -2789691096411839610L;

	/**
	 * 推送目标的uids
	 */
	private List<String> uids = new ArrayList<>();

	/**
	 * 运单
	 */
	private Order order;

	/**
	 * 推送公里数范围，默认5公里
	 */
	private Long pushId;

	public static OrderMqContext newInstance() {
		return new OrderMqContext();
	}

	public OrderMqContext set(Order order, Long pushId) {
		this.order = order;
		this.pushId =pushId;
		return this;
	}
}
